package samples.d2.shapes 
{
	import flash.filters.GlowFilter;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	import samples.BaseSample;
	import shapes.shapes2D.Circle;
	import shapes.shapes2D.distribution.Grid;
	import shapes.shapes2D.distribution.Hexagonal;
	import shapes.shapes2D.Dot;
	
	/**
	 * ...
	 * @author Nicolas Barradeau
	 * http://en.nicoptere.net
	 */
	public class Circle3 extends BaseSample
	{
		private var c:Circle;
		
		public function Circle3() 
		{
			
			
			filters = [ new GlowFilter( color, 1, 8, 8, 2, 3 )];
			graphics.beginFill( color );
			
			var points:Vector.<Point> = Hexagonal.distribute( 100, sw - 200, sh - 100, 0 ) ;
			for each( var p:Point in points )
			{
				c = new Circle( 100 + p.x, 100 + p.y, 20 );
				c.draw( graphics );
			}
			
			
		}
		
	}

}